lastNotNullOrNull

fun <T : Any> Array<out T>.lastNotNullOrNull(): T?(source)

Returns the last non-null element or null otherwise.